#pragma once

#define SIZE 1024

#define FLUSH_NONE 0//不刷新
#define FLUSH_LINE 1//行刷新
#define FILUS_FULL 2//满刷新
                    //

struct my_FILE
{
    int flag;//刷新方式
    int fileno;//文件描述符
    char outbuffer[SIZE];//语言极缓冲区
    int cap;
    int size;
};

typedef struct my_FILE mFILE;

mFILE* mfopen(const char* filename, const char* mode);
int mfwrite(const char* ptr, int num, mFILE* stream);
void mfflush(mFILE* stream);
void mfclose(mFILE* stream);
